package com.ccz.demo.design.decorated;

/**
 * 装饰(Decorator)角色
 */
public class Decorator implements Component{

    private Component component;

    public Decorator(Component component) {
        this.component = component;
    }

    // 委派给构件
    @Override
    public void move() {
        component.move();
    }
}
